package com.kcht.sylyg08.dao;

/**
 * Created by LP on 2017/1/6.
 */

import com.kcht.adp.eao.BaseEao;
import com.kcht.adp.eao.IBaseEao;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import java.io.Serializable;
/**
  *
  * @Package:        com.kcht.sylyg08.dao
  * @Description:    持久化
  * @Author:         lenovo
  * @CreateDate:     2019/5/15 10:10
 */
public abstract class DataSourceBaseDao<T, ID extends Serializable> extends BaseEao<T, ID> implements IBaseEao<T, ID> {
    /** persistence.xml里配置的持久化单元名称 */
    @PersistenceContext(unitName = "syly_persistence_unit")
    public void setEntityManager(EntityManager em) {
        super.em=em;
    }
}
